/**
  ******************************************************************************
  * @file    bsp_io.h
  * @author  Iron
  * @date    2018-07-26
  * @version v1.0
  * @brief   bsp io header file
  */

#ifndef __BSP_IO_H
#define __BSP_IO_H

#ifdef __cplusplus
extern "C" {
#endif

/* includes ------------------------------------------------------------------*/
#include <stdint.h>

/* exported types ------------------------------------------------------------*/
#define IN1   1
#define IN2   2
#define IN3   3

#define OUT1    1
#define OUT2    2

/* exported constants --------------------------------------------------------*/
/* exported macro ------------------------------------------------------------*/
/* exported functions ------------------------------------------------------- */
int32_t bsp_io_get_input(int32_t num);
int32_t bsp_io_get_output(int32_t num);
void bsp_io_set_output(int32_t num, int32_t state);

/**
  * @}
  */

#ifdef __cplusplus
}
#endif

#endif /* __BSP_IO_H */

/******************* (C)COPYRIGHT 2018 ***** END OF FILE *********************/
